import { instance } from "@/utils/request";

export function getTeam(params) {
  return instance({
    url:"/admin/team/list",
    params
  })
}
export function delTeam(id) {
  return instance({
    url:"/admin/team/del?id="+id
  })
}
export function addTeam(data) {
  return instance({
    url:"/admin/team/add",
    method:'post',
    data
  })
}
export function upTeam(data) {
  return instance({
    url:"/admin/team/update",
    method:'post',
    data
  })
}
export function getZhuanjia(current) {
  return instance({
    url:"/admin/expert/list",
    method:'post',
    data:{
      current,
      size: 10,
      params: {
        areaId: "",
        teamId: ""
      }
    }
  })
}
export function upZhuanjia(data) {
  return instance({
    url:"/admin/expert/update",
    method:'post',
    data
  })
}
export function delZhuanjia(data) {
  return instance({
    url:"/admin/expert/del",
    method:'post',
    data
  })
}
export function addZhuanjia(data) {
  return instance({
    url:"/admin/expert/save",
    method:'post',
    data
  })
}

export function getArea(params) {
  return instance({
    url:"/admin/area/list",
    params
  })
}
export function delArea(id) {
  return instance({
    url:"/admin/area/del",
    params:{
      id
    }
  })
}
export function addArea(data) {
  return instance({
    url:"/admin/area/add",
    method:"post",
    data
  })
}
export function upArea(data) {
  return instance({
    url:"/admin/area/update",
    method:"post",
    data
  })
}



